package cn.laixueit.day;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
       //long b = 1;
//        char c = 'a';
//        float d = 1.2f;
//        boolean b = true;
       /* String a = "abc";
       switch (a){
           case "abc":
               break;
       }*/
       // byte short int  char ,String(java7之后才支持的)，枚举
        /*
        *
        * 和if是一样的，做条件判断用的，根据不同的情况执行不同代码
        *  switch更适合做单值等值判断
        * */
        /*int num = 10;
        switch (10){
            case  10:

        }*/
        // 请输入数字代表的周几，输出星期几
        /*Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String day = "";
        switch (n){
            case 1:
                day = "星期一";
                break;
            case 2:
                day = "星期2";
                break;
            case 3:
                day = "星期3";
                break;
            case 4:
                break;
            case 5:
                break;
            case 6:
                break;
            case 7:
                break;
        }
        System.out.println(day);*/

        int num = -1;
        switch (num){
            case  1:
            case  2:
            case  3:
            case  4:
            case  5:
            case  7:
            case  6:
            case  8:
            case  9:
            case  10:
                System.out.println("num < 10");
                break;
        }
    }
}
